<?php

/* 
 *   RichComments! v0.1
 *   The Wordpress Plugin that lets your blog subscribers attach photos and videos
 *   to their comments
 *   
 *   Copyright (C) 2007 Stefano Verna <stefano.verna@gmail.com>
 *   
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 2 of the License, or
 *   (at your option) any later version.
 *   
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *   
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>.
 */

// this simply outputs the YouTube player given a video ID.. will be injected into thickboxs

if (isset($_GET['id'])) {?>
	<html>
	<body>
		<center>
		<object width="425" height="350">
			<param name="movie" value="http://www.youtube.com/v/<?php echo $_GET['id']?>"></param>
			<param name="wmode" value="transparent"></param>
			<embed src="http://www.youtube.com/v/<?php echo $_GET['id']?>" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>
		</object>
		</center>
	</body>
	</html>
<?php } ?>